<?php

include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once (__ALIPATH__.'/com/alibaba/openapi/client/entity/ByteArray.class.php');

class AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfo extends SDKDomain {

       	
    private $children;
    
        /**
    * @return 子自定义类目信息列表
    */
        public function getChildren() {
        return $this->children;
    }
    
    /**
     * 设置子自定义类目信息列表     
     * @param array include @see AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfo[] $children     
     * 参数示例：<pre>[]</pre>     
     * 此参数必填     */
    public function setChildren(AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfo $children) {
        $this->children = $children;
    }
    
        	
    private $iconUrl;
    
        /**
    * @return 图标
    */
        public function getIconUrl() {
        return $this->iconUrl;
    }
    
    /**
     * 设置图标     
     * @param String $iconUrl     
     * 参数示例：<pre>http://</pre>     
     * 此参数必填     */
    public function setIconUrl( $iconUrl) {
        $this->iconUrl = $iconUrl;
    }
    
        	
    private $id;
    
        /**
    * @return Id
    */
        public function getId() {
        return $this->id;
    }
    
    /**
     * 设置Id     
     * @param Long $id     
     * 参数示例：<pre>100</pre>     
     * 此参数必填     */
    public function setId( $id) {
        $this->id = $id;
    }
    
        	
    private $name;
    
        /**
    * @return 名称
    */
        public function getName() {
        return $this->name;
    }
    
    /**
     * 设置名称     
     * @param String $name     
     * 参数示例：<pre>自定义类目</pre>     
     * 此参数必填     */
    public function setName( $name) {
        $this->name = $name;
    }
    
        	
    private $ordering;
    
        /**
    * @return 排序Id
    */
        public function getOrdering() {
        return $this->ordering;
    }
    
    /**
     * 设置排序Id     
     * @param Integer $ordering     
     * 参数示例：<pre>1</pre>     
     * 此参数必填     */
    public function setOrdering( $ordering) {
        $this->ordering = $ordering;
    }
    
        	
    private $pid;
    
        /**
    * @return 父自定义类目ID
    */
        public function getPid() {
        return $this->pid;
    }
    
    /**
     * 设置父自定义类目ID     
     * @param Long $pid     
     * 参数示例：<pre>123</pre>     
     * 此参数必填     */
    public function setPid( $pid) {
        $this->pid = $pid;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "children", $this->stdResult )) {
    			$childrenResult=$this->stdResult->{"children"};
    				$object = json_decode ( json_encode ( $childrenResult ), true );
					$this->children = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfoResult=new AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfo();
						$AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfoResult->setArrayResult($arrayobject );
						$this->children [$i] = $AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfoResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "iconUrl", $this->stdResult )) {
    				$this->iconUrl = $this->stdResult->{"iconUrl"};
    			}
    			    		    				    			    			if (array_key_exists ( "id", $this->stdResult )) {
    				$this->id = $this->stdResult->{"id"};
    			}
    			    		    				    			    			if (array_key_exists ( "name", $this->stdResult )) {
    				$this->name = $this->stdResult->{"name"};
    			}
    			    		    				    			    			if (array_key_exists ( "ordering", $this->stdResult )) {
    				$this->ordering = $this->stdResult->{"ordering"};
    			}
    			    		    				    			    			if (array_key_exists ( "pid", $this->stdResult )) {
    				$this->pid = $this->stdResult->{"pid"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    		if (array_key_exists ( "children", $this->arrayResult )) {
    		$childrenResult=$arrayResult['children'];
    			$this->children = new AlibabaOceanOpenplatformBizCategoryCommonModelUserCategoryInfo();
    			$this->children->setStdResult ( $childrenResult);
    		}
    		    	    			    		    			if (array_key_exists ( "iconUrl", $this->arrayResult )) {
    			$this->iconUrl = $arrayResult['iconUrl'];
    			}
    		    	    			    		    			if (array_key_exists ( "id", $this->arrayResult )) {
    			$this->id = $arrayResult['id'];
    			}
    		    	    			    		    			if (array_key_exists ( "name", $this->arrayResult )) {
    			$this->name = $arrayResult['name'];
    			}
    		    	    			    		    			if (array_key_exists ( "ordering", $this->arrayResult )) {
    			$this->ordering = $arrayResult['ordering'];
    			}
    		    	    			    		    			if (array_key_exists ( "pid", $this->arrayResult )) {
    			$this->pid = $arrayResult['pid'];
    			}
    		    	    		}
 
   
}
?>